package root.electronclass.electronclass.mvp.entity;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 一卡通余额
 * </p>
 *
 * //@Author yxq
 * @since 2023-02-10
 */

public class CanteenBalance implements Serializable {

    private static final long serialVersionUID = 1L;

    //@TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //@TableField("name")
    private String name;
    //@ApiModelProperty(value = "学号")
    //@TableField("user_no")
    private String userNo;
    //@TableField("user_id")
    private Long userId;
    //@ApiModelProperty(value = "1-学生 2-老师")
    //@TableField("user_type")
    private Integer userType;
    //@ApiModelProperty(value = "卡号")
    //@TableField("card_no")
    private String cardNo;
    //@ApiModelProperty(value = "1-有源卡2-IC卡3-ID卡")
    //@TableField("card_type")
    private Integer cardType;
    //@ApiModelProperty(value = "1-海康平台 2-不用海康平台 3-isc")
    //@TableField("type")
    private Integer type;
    //@TableField("depart_id")
    private Long departId;
    //@ApiModelProperty(value = "余额")
    //@TableField("balance")
    private BigDecimal balance;
    //@ApiModelProperty(value = "1-正常 2-欠费 3-销户 4-锁定")
    //@TableField("status")
    private Integer status;
    //@TableField("school_id")
    private Long schoolId;
    //@ApiModelProperty(value = "乐观锁")
    //@TableField("version")
    private Integer version;
    //@ApiModelProperty(value = "0-isc余额一致， 1不一致")
    //@TableField("eq_isc")
    private Integer eqIsc;
    //@TableField("modify_time")


    public String getBalanceString(){
        return "(余额"+balance+"元)";
    }


    public String getCardNoString(){
        return "卡号："+cardNo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getDepartId() {
        return departId;
    }

    public void setDepartId(Long departId) {
        this.departId = departId;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getEqIsc() {
        return eqIsc;
    }

    public void setEqIsc(Integer eqIsc) {
        this.eqIsc = eqIsc;
    }

}
